package com.controller;

import com.entry.Product;
import com.server.impl.ProductServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class IndexControlle {
    @Resource
    ProductServiceImpl productService;

    
    @RequestMapping(  "/product/getproducimageList")
    public String getproducimageList(Model model){
        List<Product> productListimgandproduct=productService.getproducandproductimageList();
        model.addAttribute("productListimgandproduct",productListimgandproduct);
        return "index";
    }
}
